package com.aruba.attendance.di

import com.ctrip.flight.mmkv.MMKV_KMP
import com.ctrip.flight.mmkv.defaultMMKV
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

/**
 * MMKV注入
 * Created by aruba on 2023/2/15.
 */
@InstallIn(SingletonComponent::class)
@Module
class MMKVModule {
    @Singleton
    @Provides
    fun provideMMKV(): MMKV_KMP {
        return defaultMMKV()
    }
}